package cc.fozone.note.view.handler;

import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import cc.fozone.note.view.ContentView;

@SuppressWarnings("rawtypes")
public class UpdateScrollHeightHandler implements ChangeListener {
	
	private ContentView content;
	
	public UpdateScrollHeightHandler(ContentView content) {
		super();
		this.content = content;
	}

	@Override
	public void changed(ObservableValue observable, Object oldValue,
			Object newValue) {
		// TODO Auto-generated method stub
		if(!oldValue.equals(newValue)) {
			content.updateScrollHeight();
		}
	}

}
